package com.monster.starter.core.common.config;

import com.monster.starter.core.utils.SpringContextUtils;
import jakarta.annotation.Resource;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.Configuration;

/**
 * 通用配置
 * @author kuang
 */
@Data
@Configuration("CoreConfigStarter")
@ConfigurationProperties(prefix = "monster")
public class Config {

    @Resource
    public void setContext (ApplicationContext context) {
        SpringContextUtils.setContext(context);
    }

}
